home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / flying-6.11 / pcon.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-30  |  620 b   |  36 lines

  1. #ifndef _pcon_h
  2. #define _pcon_h
  3.  
  4. #ifndef _real_h
  5. #    include "real.h"
  6. #endif
  7.  
  8. class Vec2;
  9. class Pocket;
  10. class Ball;
  11. class StaticArc;
  12. class Wall;
  13.  
  14. class PocketConnector {
  15.     public:
  16.         PocketConnector()        { w1=w2=w3=0; b1=b2=0; }
  17.         ~PocketConnector();
  18.  
  19.         void RoundedSegment( const Vec2 &e1, const Vec2 &e2,
  20.                                     Vec2 *st,    const Real &r,
  21.                                     Wall **w, StaticArc **a );
  22.         int Init( const Pocket &p1, const Real &angle1,
  23.             const Pocket &p2, const Real &angle2, const Real &cushion, const Real &rad );
  24.  
  25.     private:
  26.         Wall            *w1;
  27.         StaticArc    *b1;
  28.         Wall            *w2;
  29.         StaticArc    *b2;
  30.         Wall            *w3;
  31.  
  32. friend class Pool;
  33. };
  34.  
  35. #endif
  36.